package unit4.part12.parking;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        // init parking system
        ParkingSystem parkingSystem = new ParkingSystem(scanner.next());
        // add car
        String str = scanner.next();
        for (String typeStr : str.split(";")) {
            CarType type = CarType.valueOf(typeStr);
            System.out.println(parkingSystem.addCar(type));
        }
    }
}
